package com.jwdf.uda.http.action;

import android.content.Context;

import com.jwdf.uda.bean.PbBean;
import com.jwdf.uda.http.AHttpService;
import com.jwdf.uda.http.ApiService;

import retrofit2.Call;

/**
 * Created by Administrator on 2016/11/24.
 */
public class SearchHotAction extends AHttpService<PbBean.PbResPageHotSearch>{
    public static SearchHotAction newInstance(Context context) {
        return new SearchHotAction(context);
    }

    private SearchHotAction(Context context) {
        super(context);

    }

    @Override
    protected Call newRetrofitCall(ApiService apiService, PbBean.PbBaseClientInfo.Builder baseBuilder) {
        PbBean.PbReqPageHotSearch.Builder builder = PbBean.PbReqPageHotSearch.newBuilder();
        builder.setBaseClientInfo(baseBuilder);
        return apiService.getHotSearch(builder.build());
    }
}
